package ooday03homework;

import java.awt.*;

public class Fish extends Animal implements Swim{
    Fish(){

    }
    Fish(String name, int age, Color color){
        super(name,age,color);
    }


    @Override
    void eat() {
        System.out.println("名叫"+name+"今年"+age+"岁了"+color+"色的鱼正在吃鱼食。。。。。。");
    }

    @Override
    public void swim() {
        System.out.println("名叫"+name+"今年"+age+"岁了"+color+"色的鱼正在蝶泳。。。。。。");
    }
}
